<!--  -->
<template>
    <div class='main'>
        <div class="cont">
            <div class="top">
                <img src="../../assets/images/home/成功.png" alt="">
                <p class="font18 fwbold ptb10">订单提交成功，请尽快支付！订单号：123456789101010</p>
                <p class="font14 fw400" style="color: #999;">推荐使用XX支付 I 请您在23时59分50秒内完成支付，否则订单会被自动取消</p>
                <p class="font16" style="margin-top: 30px;">应付金额：<span class="font25 fwbold ff5">1500.00元</span></p>
            </div>
            <div :class="radio == '1' ? 'active zfb' : 'zfb'">
                <div>
                    <img src="../../assets/images/home/支付宝.png" alt="">
                    <p class="font18 fwbold">支付宝</p>
                </div>
                <el-radio v-model="radio" label="1">{{ '' }}</el-radio>
            </div>
            <div class="vx" :class="radio == '2' ? 'active vx' : 'vx'">
                <div>
                    <img src="../../assets/images/home/微信.png" alt="">
                    <p class="font18 fwbold">微信</p>
                </div>
                <el-radio v-model="radio" label="2">{{ '' }}</el-radio>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    //import引入的组件需要注入到对象中才能使用
    components: {},
    data() {
        //这里存放数据
        return {
            radio: "1",
        };
    },
    //监听属性 类似于data概念
    computed: {},
    //监控data中的数据变化
    watch: {},
    //方法集合
    methods: {

    },
    beforeCreate() { }, //生命周期 - 创建之前
    //生命周期 - 创建完成（可以访问当前this实例）
    created() {

    },
    beforeMount() { }, //生命周期 - 挂载之前
    //生命周期 - 挂载完成（可以访问DOM元素）
    mounted() {

    }
}
</script>
<style lang="less" scoped>
.main {
    min-height: calc(100vh - 90px);
    background-color: #F9F9F9;

    .cont {
        margin: 0px 105px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;

        .top {
            width: 100%;
            height: 300px;
            background: #FFFFFF;
            margin: 20px 0px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            img {
                margin-bottom: 20px;
            }
        }

        .vx,
        .zfb {
            width: 100%;
            height: 100px;
            margin-bottom: 15px;
            background: #FFFFFF;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 30px;
            box-sizing: border-box;

            div {
                display: flex;
                align-items: center;

                img {
                    margin-right: 15px;
                }
            }
        }

        .active {
            background: rgba(255, 87, 87, 0.02);

            border: 1px solid #FF5757;

        }
    }
}

/deep/ .el-radio__inner {
    width: 20px;
    height: 20px;
}

/deep/.el-radio__input.is-checked .el-radio__inner {
    width: 20px;
    height: 20px;
    background: #FF5757 !important;
    border-color: #FF5757 !important;
}

/deep/ .el-radio__input.is-checked .el-radio__inner::after {
    content: '';
    width: 10px;
    height: 5px;
    border: 2px solid white;
    border-top: transparent;
    border-right: transparent;
    text-align: center;
    display: block;
    position: absolute;
    top: 4px;
    left: 3px;
    // vertical-align: middle;
    transform: rotate(-45deg);
    border-radius: 0px;
    background: none;

}
</style>